home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / dvlprstc.hqx / Developer Stack 1.3r / card_24055.txt < prev    next >
Encoding:
Text File  |  1991-04-30  |  1.5 KB  |  70 lines

  1. -- card: 24055 from stack: in.3r
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3837
  5. -- name: NumberOfDAs
  6.  
  7.  
  8. -- part 2 (button)
  9. -- low flags: 00
  10. -- high flags: A004
  11. -- rect: left=196 top=234 right=283 bottom=269
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 27056 / 27056
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Try It
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   if the optionkey is down then pass mouseup
  23.   put numberOfDAs()&&"DAs are installed"
  24. end mouseUp
  25.  
  26.  
  27. -- part contents for background part 10
  28. ----- text -----
  29. 11
  30.  
  31. -- part contents for background part 5
  32. ----- text -----
  33. NumberOfDAs
  34.  
  35. -- part contents for background part 6
  36. ----- text -----
  37.  
  38. Returns the number of DAs installed in the system.
  39.  
  40.  
  41. Send comments & suggestions to Aron Roberts:      CompuServe:  73075,1342
  42.               GEnie:  ARON
  43. ARPA Internet:  csaron@garnet.Berkeley.EDU
  44.             BITNET:  CSARON@UCBCMSA.BITNET
  45.  
  46. This XFCN may be freely distributed.
  47.  
  48. The numberOfDAs() function and getDANames* command may be used in any noncommercial or commercial stacks.
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55. -- part contents for background part 7
  56. ----- text -----
  57. Syntax:
  58.  
  59. numberOfDAs()   
  60.  
  61.  
  62. Returns the count of the DAs in the Apple menu.  This number FUNCTION can be placed into any container.  (The pair of parens, "()",  at the end of "numberOfDAs" is REQUIRED.)  
  63.  
  64. Example:
  65. put numberOfDAs() into theNumber repeat with numericVariable = 1 to numberOfDAs() 
  66.  
  67.  
  68. -- part contents for background part 27
  69. ----- text -----
  70. XFCN